home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
comm
/
bbs
/
maxsdoors.lha
/
FileGen2.5.lha
/
FileGen.Doc
< prev
next >
Wrap
Text File
|
1991-09-15
|
9KB
|
226 lines
FileGen V2.5
==========================
(C) 1991 by Edward Lawford
==========================
This utility and it's source code is placed in public domain
under the following conditions:
(1). The source code, executable and documents are left
in the archive and not altered in any way for distribution.
(2). The source code may be altered in any way aslong as it
isn't altered for use with any BBS program other than MaxsBBS.
(3). My name and credits is left intact in the archive.
Other than that, I hope it is useful!
THE DOCS:
=========
This programs purpose in computer life is to generate a readable text
file from MaxsBBS's File.Data file for people to download and browse
through it.
USAGE:
======
Well, FileGen has changed quite a bit in apperance since 1.2a... it also
has a minor bug fix.
FileGen no longer accepts command line switches. It will only accept
section # exclusions as before. To exclude any section(s) from the list,
just place the sections names as the args for the program. E.g:
FileGen 28 35 36
This would exclude sections 28, 35 and 36 from the file list. You can
use this feature to generate multiple file lists for different
"sections" of your BBS if you use a clever batch file.
If anyone had seen V1.x of FileGen, you would know that you used command
line switches to sort/lharc etc... Well now it is as easy as loading up
FileGenConfig and setting the settings there. They are fairly straight
forward. The textfile name is the name of the file that contains no ANSI
codes in it. It is also the file that is placed into an lharc if you
want one. The ANSI output filename is the same as the Textfile output
name but has ANSI codes to make things stand out. This textfile could be
used on the BBS itself.
The switch for Lharc is so you can instruct FileGen to lharc your file
list after generation. This can be handy as you can then supply it to
users for downloading.
The switch for sort is to tell FileGen that you do or do not want it to
sort the files into ascending alphabetical when generating the list.
This is oppsed to the natural cronological sort.
The switch for header is to enable you to add a textfile header of any
type you choose, to the top of the file list. You can design the header
in any way you like but ANSI is not recommended. It can also be called
whatever you like.
The switch for pause is whether you want FileGen to add a %Z to the end
of .ansi file. Since the ANSI file was meant for display on the BBS, it
will force a page pause at the end of the list.
The archive cmd string gadget is used to totally customize the meathod
of archiving you use... This means that you can use Arc or Zip instead
of lharc. The only drawback is that output from Lharc now has to be to
the Stdout (CLI) Until I can figure out how to tell it to do otherwise
without a >CON: command.
The TopDL gadget and TopDl name string gadget allow you to generate a
list of the 10 most downloaded files on your BBS. The list generated
uses heavy ANSI commands and so is really only fit for display on your
BBS but it looks great! It is also quite interesting and useful for
users.
Once you have finished configuring it, just click on the Save gadget and
then the Close gadget in the titlebar.
CHANGE SINCE V1.0:
=================
- The program has been changed a bit since V1.0 to include Lharcing from
the command line which saves running a batch file to do it for you.
- I have changed the way it checks the files to make the program
execution time ALOT faster. It now takes around 25% of the time it
used to take to list the same amount of files and there is hardly any
disk thrashing.
CHANGES SINCE V1.1:
===================
- Main change, added the file sort routine to sort the files. This has
come about because I tougt myself how to do a bubble sort in C!.
* Bug fix: I realized that lharc (Lz V1.01) wouldn't add a file that
already existed into an existing archive so I had to delete the file
before lharcing.
CHANGES SINCE V1.2:
===================
- The ability to specify the path and the output name of the lharc file.
(At request from otto.)
CHANGES SINCE 1.2a:
===================
- MAJOR cosmetic overhaul.
- FileGen now uses an Intuition window with intuition text and intuition
gadgets for it's output. This means that the display is alot clearer,
alot FASTER and looks ALOT better. The list should generate much
faster now because IntuiText dosn't have so much overhead as CLI output
does.
- The addition of a Configuration file called S:FileGen.config and a
complete program to configure FileGen... Just like alot of IBM programs
do.
* Bug Fix: A rare one - FileGen wasn't scanning section 99, It just
skipped it. Hope it's fixed and thanx otto (again :-)).
CHANGES SINCE 2.0d:
===================
- Added an "Archive cmd string" to the configure window. This allows you
to totally customize the method of archiving you use and the name of
your archiver.
- A few minor things. I have forgotten :-)
CHANGES SINCE V2.2:
===================
- Added a headerfile support. You can now add a header from within
FileGen instead of using a complex batch file. It inserts the header
at the top of EVERYTHING in both ANSI and ASCII textfiles. This can
be quite a good way for people to identify your BBS and can also be a
good add. The file can be as long as you like.
- FileGen now inserts the full date and time after the copyright notice
so people can find out how current the filelist. Again, this gets rid of
the need to use a complicated batchfile and temporary files.
- Took some of the stupid bitmaps out of the config file to save chip
mem and add room. It should also make the file size alot smaller. I had
to do this to make room for the 2 extra gadgets.
- Small cosmetic change: The config program now ghosts the Lharc
filename and the Archive command gadgets when Archive is de-selected. It
also ghosts the header filename when Header is de-selected. This is just
there to remind you that they arn't active.
- Because this is what I expect to be the final version, the source code
is included in the distribution archive. See "Source.doc" for more
info.
CHANGES SINCE V2.3:
===================
* Bug fixed: My stupid mistake. This was a major bug. Memory wasn't getting
free'd everytime the program exited. This because I was doing Exit()
instead of exit(). The difference being that the first is the AmigaDOS exit
which doesn't de-allocate all malloc() and calloc() (Which is what I
use). Fixed now. (Changing the case of that 'e' was pretty strenuous
work! I almost threw in the towel :-))
- Changed sort routine: I now use my OWN sort routine although I'm sure
someone has thought of it before. If you would like the routine, give us
a buzz.
- Changed the format of the file listing.. Much improved. It now goes
like this:
FileName Description
Date Size Dloads
CHANGE FOR V2.5:
================
* BUG FIXED! Yes folks, it's fixed now. The date at the beggining of
the list isn't 100 billion, it's now correct. Sorry bout this one.
The whole listing was actually a mess and I had to fix it up. The
title of each file area is now much nicer and the whole list looks a
whole heap better! I hope you like it.
- Changed the listing format of the list (Again!) It now goes something
like this:
FileName Description
Date Size
You are supposed to use DownTrac to display the downloads as it looks
alot more attractive.
- Added TopDL listing. This is quite useful and I have been meaning to
put it in for a while. Naturally, files from excluded sections won't
be added to the list.
This version is basically a big cleanup and I hope that all the
bugs have been removed. Please don't hesitate to drop me a line if
you find any bugs or have any suggestions!
BUG REPORTS:
============
If you have any bug reports/complaints/suggestions for any of my MaxsBBS
utilties, please don't hesitate to drop me a line:
Edward Lawford
Fire & Stone AMIGA BBS - (02) 960-3621, Sydney, Australia.
NOTE:
=====
After 1 year of thinking about it, my BBS is now online at the above
address. Give it a call. I stock the latest MaxsBBS utilities written by
me and other people. Instead of going through MaxsBBS, you can nows
contact me directly.
FINAL NOTE:
\=========/
I hope you like this version. I think it has come to closing stage now
and is a finished product. If I get anymore ideas, I will implement them
and distribute. I Hope you like this version! And bug reports are most
definatly welcome. (Although not liked :-))